﻿@{
    ViewBag.Title = "AjaxWay";
}


<div id="innerContainer">
    @using (Html.BeginForm())
    {
        <span>bbb</span>
        <input name="Name" value="ssssss" />
        <input name="Age" value="23" />
        <input type="radio" name="rad" id="ra" value="vaaaa" />
        <input type="radio" name="rad" id="rb" value="vbbbb" />
        <input type="radio" name="rad2" id="rc" />
        
        <input type="checkbox" name="cbx" id="ca" value="vaaaa" />
        <input type="checkbox" name="cbx" id="cb" value="vbbbb" />
        <input type="checkbox" name="cbx2" id="cc" />
        <input type="button" id="btnId" value="提交" />
    }
</div>
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/PlugIns/jquery.tools.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/PlugIns/jQuery.form.2.84.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#btnId").click(function () {
            $('#innerContainer form').ajaxSubmit({
                success: function (responseText) {
                    alert(responseText);
                },
                data: {"isAjaxDeal":"true"}
            });
        });
    })
</script>

